#include "CustomTextEdit.h"

#include <QKeyEvent>
#include <qDebug>

CustomTextEdit::CustomTextEdit() {}


bool CustomTextEdit::event(QEvent *e)
{
    if (e->type() == QEvent::KeyPress)
    {
        QKeyEvent *keyEvent = static_cast<QKeyEvent *>(e);
        if (keyEvent->key() == Qt::Key_Tab)
        {
            qDebug() << "You press tab.";
            return true;
        }
    }
    return QWidget::event(e);
}
